define(['./style'], function(style) {

  var option = {
    animation: false,
    title: {
      //text: '运维工单上月与本月对比分析',
      textStyle: {
        color: style.title.textStyle.color,
        fontSize: style.title.textStyle.fontSize
      }
    },
    tooltip: {},
    legend: {
      zlevel: 2,
      orient: 'horizontal',
      left: 'left',
      top: 'middle',
      orient: 'vertical',
      textStyle: {
        color: '#000',
        fontSize: 12
      },
      show: true,
      data: [{ name: '上月上月上月上月上', icon: 'circle' }, { name: '本月', icon: 'circle' }]
    },
    grid: {
      top: style.gridPos.top,
      left: style.gridPos.left,
      right: style.gridPos.right,
      bottom: style.gridPos.bottom,
      containLabel: true,
      show: false,
      borderWidth: 1,
      borderColor: style.gridBorderColor
    },
    xAxis: {
      nameTextStyle: {
        color: style.fontColor,
        opacity: style.opacity,
        fontSize: style.fontSize
      },
      axisLine: { //轴，下面有条是grid线，
        show: true,
        onZero: false,
        lineStyle: {
          color: style.axisLineColor,
          width: style.axisLine.lineStyle.width,
          opacity: style.notSupportOpacity
        }
      },
      axisTick: { //刻度
        show: false
      },
      axisLabel: {
        show: true,
        margin: 8,
        rotate: 0,
        textStyle: {
          color: style.labelColor,
          opacity: style.notSupportOpacity,
          fontSize: style.fontSize
        }
      },
      splitLine: {
        show: false,
        lineStyle: {
          color: '#236592',
          opacity: style.opacity
        }
      },
      data: ['事件', '问题', '变更', '巡检', '二线流程']
    },
    yAxis: [{
      nameLocation: 'middle',
      min: undefined,
      max: undefined,
      nameTextStyle: {
        color: style.fontColor,
        opacity: style.opacity,
        fontSize: style.fontSize
      },
      axisLine: {
        show: true,
        onZero: false,
        lineStyle: {
          opacity: style.notSupportOpacity,
          color: style.axisLineColor,
          width: style.axisLine.lineStyle.width
        }
      },
      axisTick: {
        show: false
      },
      axisLabel: {
        show: true,
        margin: 8,
        textStyle: {
          color: style.labelColor,
          fontSize: style.fontSize,
          opacity: style.notSupportOpacity
        }
      },
      splitLine: {
        show: true,
        lineStyle: {
          color: '#236592',
          opacity: style.opacity
        }
      }
    },{
      nameLocation: 'middle',
      nameTextStyle: {
        color: style.fontColor,
        opacity: style.opacity,
        fontSize: style.fontSize
      },
      axisLine: {
        show: true,
        onZero: false,
        lineStyle: {
          opacity: style.notSupportOpacity,
          color: style.axisLineColor,
          width: style.axisLine.lineStyle.width
        }
      },
      axisTick: {
        show: false
      },
      axisLabel: {
        show: false,
        margin: 8,
        textStyle: {
          color: style.labelColor,
          fontSize: style.fontSize,
          opacity: style.notSupportOpacity
        }
      },
      splitLine: {
        show: false,
        lineStyle: {
          color: '#236592',
          opacity: style.opacity
        }
      }
    }],
    series: [{
      barWidth: 10,
      //barGap: '20%',
      name: '上月上月上月上月上',
      type: 'bar',
      data: [40, 20, 10, 10, 20],
      // animation: false
    }, {
      barWidth: 10,
      //barGap: '20%',
      name: '本月',
      type: 'bar',
      data: [42, 30, 15, 10, 15],
      // animation: false
    }]
  }
  return option;
})